package com.free.javaplus.model;

public class node
{

    private String nodeName;
    private String nodeId;
    private int hasChildNode;
    private String extendAttribute;

    public node()
    {
        nodeName = "";
        nodeId = "";
        hasChildNode = 0;
        extendAttribute = "";
    }

    public boolean hasChildNode()
    {
        return getHasChildNode() == 1;
    }

    public int getHasChildNode()
    {
        return hasChildNode;
    }

    public void setHasChildNode(int hasChildNode)
    {
        this.hasChildNode = hasChildNode;
    }

    public String getExtendAttribute()
    {
        return extendAttribute;
    }

    public void setExtendAttribute(String extendAttribute)
    {
        this.extendAttribute = extendAttribute;
    }

    public String getNodeId()
    {
        return nodeId;
    }

    public void setNodeId(String nodeId)
    {
        this.nodeId = nodeId;
    }

    public String getNodeName()
    {
        return nodeName;
    }

    public void setNodeName(String nodeName)
    {
        this.nodeName = nodeName;
    }
}